package com.zhang.modules.dict.entity;

import com.zhang.common.jpa.entity.BaseEntity;
import com.zhang.common.jpa.entity.DTO;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.Size;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Entity(name = "SysDictType")
@Table(name = "sys_dict_type")
public class DictType extends BaseEntity implements DTO {

    @Size(max = 100)
    @Column(name = "dict_name", length = 100)
    private String dictName;

    @Size(max = 100)
    @Column(name = "dict_type", length = 100)
    private String dictType;

    @Column(name = "status")
    private Character status;

    @Size(max = 500)
    @Column(name = "remark", length = 500)
    private String remark;

}